<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>Nordic Thingy:52 v2.2.0 : Support functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra_stylesheet_offline.css" rel="stylesheet" type="text/css"/>
<link href="nordic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0" width="100%" class="blank">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Nordic Semiconductor" src="nordic_small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nordic Thingy:52 v2.2.0
   </div>
  </td>
 </tr>
 </tbody>
</table>
<script>
var url=window.location.href.split("/").reverse()[1];
var validLinks= ["nrf5","s130","s132","s212","s332"];
var index;
for (index = 0; index < validLinks.length; ++index) {
   if ( url.indexOf(validLinks[index]) !== -1 ) {
      document.getElementById(validLinks[index]).setAttribute('class', 'doclinks docselected');
   };
};
</script>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__support__func.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Support functions<div class="ingroups"><a class="el" href="group__util.html">Utilities</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Support functions.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga3bb2b348db3927b7f4fd4c38cfe97cbb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__support__func.html#ga3bb2b348db3927b7f4fd4c38cfe97cbb">SUPPORT_FUNC_MAC_ADDR_STR_LEN</a>&#160;&#160;&#160;( (BLE_GAP_ADDR_LEN * 2) + 5 + 1)</td></tr>
<tr class="separator:ga3bb2b348db3927b7f4fd4c38cfe97cbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga3eb663b8b1750f80b0534307f594a741"><td class="memItemLeft" align="right" valign="top">ret_code_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__support__func.html#ga3eb663b8b1750f80b0534307f594a741">support_func_ble_mac_address_get</a> (char *p_mac_addr)</td></tr>
<tr class="memdesc:ga3eb663b8b1750f80b0534307f594a741"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function for printing the MAC addess of the device.  <a href="#ga3eb663b8b1750f80b0534307f594a741">More...</a><br /></td></tr>
<tr class="separator:ga3eb663b8b1750f80b0534307f594a741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc55135665b037947ac570e0c02ed23e"><td class="memItemLeft" align="right" valign="top">ret_code_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__support__func.html#gafc55135665b037947ac570e0c02ed23e">support_func_configure_io_shutdown</a> (void)</td></tr>
<tr class="memdesc:gafc55135665b037947ac570e0c02ed23e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function for configuring nRF IO and the GPIO extender for shutdown.  <a href="#gafc55135665b037947ac570e0c02ed23e">More...</a><br /></td></tr>
<tr class="separator:gafc55135665b037947ac570e0c02ed23e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6ce72986342a0464c927715609978272"><td class="memItemLeft" align="right" valign="top">ret_code_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__support__func.html#ga6ce72986342a0464c927715609978272">support_func_configure_io_startup</a> (<a class="el" href="structdrv__ext__gpio__init__t.html">drv_ext_gpio_init_t</a> const *const p_ext_gpio_init)</td></tr>
<tr class="memdesc:ga6ce72986342a0464c927715609978272"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function for configuring nRF IO and the GPIO extender for startup.  <a href="#ga6ce72986342a0464c927715609978272">More...</a><br /></td></tr>
<tr class="separator:ga6ce72986342a0464c927715609978272"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26f1b9bf321256a7266d192a154dfbf7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__support__func.html#ga26f1b9bf321256a7266d192a154dfbf7">support_func_sys_halt_debug_enabled</a> (void)</td></tr>
<tr class="memdesc:ga26f1b9bf321256a7266d192a154dfbf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function for checking if the device is in debug mode.  <a href="#ga26f1b9bf321256a7266d192a154dfbf7">More...</a><br /></td></tr>
<tr class="separator:ga26f1b9bf321256a7266d192a154dfbf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Support functions. </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga3bb2b348db3927b7f4fd4c38cfe97cbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3bb2b348db3927b7f4fd4c38cfe97cbb">&#9670;&nbsp;</a></span>SUPPORT_FUNC_MAC_ADDR_STR_LEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SUPPORT_FUNC_MAC_ADDR_STR_LEN&#160;&#160;&#160;( (BLE_GAP_ADDR_LEN * 2) + 5 + 1)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>6 bytes + 5 colon separators + NUL termination </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3eb663b8b1750f80b0534307f594a741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3eb663b8b1750f80b0534307f594a741">&#9670;&nbsp;</a></span>support_func_ble_mac_address_get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_code_t support_func_ble_mac_address_get </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>p_mac_addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function for printing the MAC addess of the device. </p>
<dl class="section note"><dt>Note</dt><dd>The SoftDevice must be enabled before this call is made.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">p_mac_addr</td><td>Pointer to char array of length SUPPORT_FUNC_MAC_ADDR_STR_LEN.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>NRF_SUCCESS If the call was successful. </dd>
<dd>
NRF_ERROR_SOFTDEVICE_NOT_ENABLED The SoftDevice has not been enabled. </dd>
<dd>
Other codes from the underlying drivers. </dd></dl>

</div>
</div>
<a id="gafc55135665b037947ac570e0c02ed23e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc55135665b037947ac570e0c02ed23e">&#9670;&nbsp;</a></span>support_func_configure_io_shutdown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_code_t support_func_configure_io_shutdown </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function for configuring nRF IO and the GPIO extender for shutdown. </p>
<dl class="section note"><dt>Note</dt><dd>For Thingy HW v1.0.0, this function will only return NRF_SUCCESS as errors are ignored.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>NRF_SUCCESS If the call was successful. </dd>
<dd>
Other codes from the underlying drivers. </dd></dl>

</div>
</div>
<a id="ga6ce72986342a0464c927715609978272"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6ce72986342a0464c927715609978272">&#9670;&nbsp;</a></span>support_func_configure_io_startup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_code_t support_func_configure_io_startup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdrv__ext__gpio__init__t.html">drv_ext_gpio_init_t</a> const *const&#160;</td>
          <td class="paramname"><em>p_ext_gpio_init</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function for configuring nRF IO and the GPIO extender for startup. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_ext_gpio_init</td><td>Pointer to IO extender configuration.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>NRF_SUCCESS If the call was successful. </dd>
<dd>
Other codes from the underlying drivers. </dd></dl>

</div>
</div>
<a id="ga26f1b9bf321256a7266d192a154dfbf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga26f1b9bf321256a7266d192a154dfbf7">&#9670;&nbsp;</a></span>support_func_sys_halt_debug_enabled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool support_func_sys_halt_debug_enabled </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function for checking if the device is in debug mode. </p>
<dl class="section note"><dt>Note</dt><dd>Checks if the C_DEBUGEN flag is set in the DHCSR register (Debug Halting Control and Status Register).</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>True System is in debug mode. </dd>
<dd>
False System is not in debug mode. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="topicfooter">
<a href="mailto:docfeedback@nordicsemi.no?subject=Documentation%20feedback" id="maillink">Documentation feedback</a> | <a href="https://devzone.nordicsemi.com/questions/" target="_blank">Developer Zone</a> | <a href="http://response.nordicsemi.com/subscribe-to-our-newsletters" target="_blank">Subscribe</a> | Updated <span id="date"/>
<script>
var date = new Date("Thu Feb 7 2019" + " UTC");
document.getElementById("date").innerHTML = date.toJSON().slice(0, 10);
var url=window.location.href.split("?")[0];
var filename=url.substring(url.lastIndexOf('/')+1);
document.getElementById("maillink").href = "mailto:docfeedback@nordicsemi.no?subject=Documentation%20feedback"+decodeURIComponent("%26")+"body=File%20name%3A%20"+encodeURIComponent(filename);
</script>
</div>
</body>
</html>
